'''
Created on Mar 2, 2014

@author: chunhuiluo
'''
from rest_framework import routers
from api import viewset

def register():
    router = routers.DefaultRouter()
    router.register(r'TinyShop', viewset.TinyShopViewSet)
    router.register(r'Order', viewset.OrderViewSet)
    router.register(r'Product', viewset.ProductViewSet)
    router.register(r'Module', viewset.ModuleViewSet)
    router.register(r'GoodsCategory', viewset.GoodsCategoryViewSet)
    return router
    